Q: How can I get mouse-repeat events analogous to key-repeat events?\
\
A: You cannot get them from the hardware and we do not plan to provide that event type. If you want to simulate them, you can use timer events or timed entries. \
\
While processing a mouseDown in a modal loop, you use a timer event. In your
\b mouseDown:
\b0 method, you start a timer executing
\b
\b0 at regular intervals with the
\b NXBeginTimer()
\b0 function
\b .
\b0 The synthetic timer events will simulate mouse-repeat events similar to key-repeat events until you stop the timer upon mouse up with a call to
\b NXEndTimer
\b0 ().\
\
You can also create and insert mouse-repeat events into the queue programmatically outside of a modal processing loop. In your
\b mouseDown:
\b0 method add a timedEntry procedure with the function
\b DPSAddTimedEntry()
\b0 . This procedure should check
\b PSstilldown()
\b0 , and if so, send the event type that you need. On
\b mouseUp:
\b0 , remove the timedEntry with
\b DPSRemoveTimedEntry()
\b0 .\
\
Please see appkit.650 for more about Timed Entries and appkit.651 for more on Timer Events.\